public class E4_1 {
	public static void main(String args[]) {
		long sum=0,m=1;
		int n=10;
		for (int i=1;i<=10;i++) {
			m = m*i;
			sum = sum + m;
		}
		System.out.println("1!+2!+...+10!="+sum);
	}
}
